SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE [dbo].OriginalesSelectCommandByCategoria
(
	@CATEGORIA varchar(100)
)
AS
	SET NOCOUNT ON;
SELECT        ORIGINALES.*
FROM            ORIGINALES INNER JOIN
                         CATEGORIAS ON ORIGINALES.ID_CATEGORIA = CATEGORIAS.ID
WHERE        (CATEGORIAS.CATEGORIA LIKE '%' + @CATEGORIA + '%')
GO
